<?php

class ApiService extends Model {

    /**
     * @var ApiDao
     */
    private $apiDao;

    public function injectDependencies() {
        $this->apiDao = ApiDao::getInstance();
    }

    private function authentication($application, $password) {
        return true;
    }

    public function insertExternalCalled($ArAuth, $ArData) {
        //auth
        if( !$this->apiDao->insertExternalCalled($ArData) ) {
            return new Retorno('500. Erro criar o chamado externo.');
        }
        return new Retorno('200. Ok.', 1);
    }

}

?>
